package leetcode.sort;

import leetcode.sort.common.SortUtils;

import java.util.Arrays;

class Solution912 {
    public int[] sortArray(int[] nums) {
//        return SortUtils.sortArray(nums);
        return SortUtils.myQuickSortArray(nums);
//        Arrays.sort(nums);
//        return nums;
    }
}

public class leetcode912 {
    public static void main(String[] args) {
        Solution912 solution912 = new Solution912();
        int[] nums = {5, 2, 3, 1};
        int[] nums1 = {5, 1, 2, 0, 4, 6, 7, 8};
        System.out.println(Arrays.toString(solution912.sortArray(nums)));
        System.out.println(Arrays.toString(solution912.sortArray(nums1)));
    }
}
